import 'dart:ui';

class CircleTxt {
  String? txt;
  Color? color;
  double? fontSize;
  bool? border;
  Color? borderColor;
  bool? fill;
  Color? fillColor;
  List<CircleTxt>? children;
  bool vertical;
  bool stopCalcDirection;
  List<Map<String, String>>? infoList;

  CircleTxt(
      {this.txt,
      this.color,
      this.fontSize,
      this.borderColor,
      this.fill,
      this.fillColor,
      this.children,
      this.vertical = false,
      this.infoList,
      this.stopCalcDirection = false});
}

class RenderItem {
  double cellSize;
  double fontSize;
  bool border;
  bool show;
  bool vertical;
  double offset;

  final List<CircleTxt> txtList;

  RenderItem(
      {this.cellSize = 16,
      this.fontSize = 16,
      this.border = true,
      this.show = true,
      required this.txtList,
      this.vertical = false,
      this.offset = 0});
}

class Direction {
  final CircleTxt? seat;
  final CircleTxt? orientation;

  Direction({required this.seat, required this.orientation});
}

class MagneticInfo {
  double x, y, z;

  MagneticInfo(this.x, this.y, this.z);
}

class AccelInfo {
  double x, y, z;

  AccelInfo(this.x, this.y, this.z);
}

class PositionInfo {
  double latitude;
  double longitude;

  PositionInfo({required this.latitude, required this.longitude});
}
